package com.frejoys.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.frejoys.dao.entity.StoreCode;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


public interface StoreCodeMapper extends BaseMapper<StoreCode> {

    @Select("select code,pay_code from j_store_code where store_id=#{storeId} and type=#{type} limit 1")
    StoreCode getCodeAndQrCode(@Param("storeId") Integer storeId, @Param("type") Integer type);

}
